<?php
/**
 * 参数设置
 */
namespace Model;
use Core\model\Model;
defined('IN_IA') or exit('Access Denied');
class SettingModel extends Model
{
    protected $_fields = array(
        "id",
        "uniacid",
        "give",
        "sub",
        "currency_name",
        "use_balance",
        "web_name",
        "web_icon",
        "web_description",
        "sign_keyword",
        "ticket",
        "ticket_expire",
        "scene_id",
        "help",
        "show_help"
    );

    /**
     * 网站图标地址
     * @param $_value
     * @param $_data
     * @return string
     */
    public function getWebIconUrlAttr($_value,$_data)
    {
        if(isset($_data["web_icon"])) {
            return tomedia($_data["web_icon"]);
        }
    }
}
